<template>
  <div class="home">
    <code-editor :value="codeValue" :handle-change="onCodeChange" />
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import CodeEditor from "@/components/CodeEditor.vue"; // @ is an alias to /src

const codeValue = ref();
const onCodeChange = (v: string) => {
  codeValue.value = v;
};
</script>
